package day_3;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;



public class Test3_10 {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws ParseException 
	 */
	public static void main(String[] args) throws IOException {
		BufferedReader r =  new BufferedReader(new 	InputStreamReader(System.in));
		String str1 =r.readLine();
		String str2 =r.readLine();
		String str3 =r.readLine();
		String str4 =r.readLine();
		
		
		
		Integer i=Integer.parseInt(str1);
		Float f=Float.parseFloat(str2);
		Double d=Double.parseDouble(str3);
		Long l=Long.parseLong(str4);
		
		System.out.println(i.floatValue());
		System.out.println(f.intValue());
		System.out.println(d.longValue());
		System.out.println(l.doubleValue());
		
		System.out.println(i);
		System.out.println(f);
		System.out.println(d);
		System.out.println(l);
		
		
		
		
	}

}
